package cn.edu.nuc.ssm.service;

import cn.edu.nuc.ssm.entity.Category;
import cn.edu.nuc.ssm.entity.User;

import java.util.List;

/**
 * Created by Administrator on 2017/4/6.
 */
public interface UserService {

     int regist(User user);


     int validUsername(String username);


     User login(String username, String password);

     User findbyId(int id);

     int updateUserMessage(User user);

     List<Category> findbyzhiCategory(Integer uid);

     List<Category> findbyshouruCategory(Integer uid);

     int saveInsertCategory(Category category);

    int updateCategoryName(String name,Integer id);

    List<User> findAll();

    void freeze(int id);

    void defreeze(int id);

    void updatePic(User user);

    String findpicByid(Integer id);
}